﻿using RDTool.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace RDTool.ViewModel
{
    public class VMVMSItem : ViewModelBase
    {
        public string Name { get; set; }

        public bool IsRunning { get; set; }

        public string ID { get; set; }
        public Visibility RunningVisibility { get; set; }

        public Visibility StopVisibility
        {
            get
            {
                return (RunningVisibility == Visibility.Visible) ? Visibility.Collapsed : Visibility.Visible;
            }
        }


        public string RunningState
        {
            get
            {
                return RunningVisibility == Visibility.Visible ? "停止" : "运行中";
            }
        }
    }
}
